//
//  SYTradeView.h
//  SYKeyboard
//
//  Created by hc on 2019/3/22.
//  Copyright © 2019 hc. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, TradeType) {
    TradeSixType = 6,
    TradeEightType = 8,
};

@protocol SYTradeViewDelegate <NSObject>

//  输入完成
- (void)tradePassword:(NSString *)password;

@end

NS_ASSUME_NONNULL_BEGIN

@interface SYTradeView : UIView

@property (nonatomic, weak) id<SYTradeViewDelegate> delegate;

@property (nonatomic, assign) TradeType type;       //  密码类型  目前只有6位和8位     默认为6位
@property (nonatomic, copy) NSString *titleStr;     //  标题

- (void)show;
- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
